<template>
  <div id='map'></div>
</template>
<script>
export default {
  computed: {},
  data: function () {
    return {
      prjId: 0,
      map:null
    }
  },
  methods: {
    uploadData() {},
  },
  mounted: function () {
    const script = document.createElement('script');
    script.src = 'https://map.rdunion.cn:9001/bigemap.js/v2.1.0/bigemap.js';
    script.onload = () => {
      this.prjId = this.$route.query.id
      BM.Config.HTTP_URL = 'https://map.rdunion.cn:9001'
      this.map = BM.map('map', 'bigemap.cehqu50n', { center: [35.9879150390625, 103.39543151855469], zoom: 11, zoomControl: true });
    };
    document.head.appendChild(script);

    
  },
}
</script>
  
<style scoped>
@import 'https://map.rdunion.cn:9001/bigemap.js/v2.1.0/bigemap.css';
</style>
  